package com.jzo2o.foundations.controller.inner;


import com.jzo2o.api.foundations.ServeApi;
import com.jzo2o.api.foundations.ServeItemApi;
import com.jzo2o.api.foundations.dto.response.ServeAggregationResDTO;
import com.jzo2o.api.foundations.dto.response.ServeItemResDTO;
import com.jzo2o.api.foundations.dto.response.ServeItemSimpleResDTO;
import com.jzo2o.api.foundations.dto.response.ServeTypeCategoryResDTO;
import com.jzo2o.foundations.service.IServeItemService;
import com.jzo2o.foundations.service.IServeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 内部接口 - 服务项相关接口
 * </p>
 *
 * @author itcast
 * @since 2023-07-03
 */
@RestController
@RequestMapping("/inner/serve")
@Api(tags = "内部接口 - 服务项相关接口")
public class InnerServeController implements ServeApi {

    @Autowired
    private IServeService serveService;


    //根据ID查询服务详情
    @GetMapping("/{id}")
    public ServeAggregationResDTO findById(@PathVariable("id") Long id) {
        return serveService.findById(id);
    }
}
